package com.tengju.data.infrastructure.repository.clickhouse.ods;

import com.tengju.data.domain.model.clickhouse.OdsDealerCenterUserBrandProviderRepository;
import com.tengju.data.infrastructure.persistence.mybatis.mapper.clickhouse.ods.OdsDealerCenterUserBrandProviderDOMapper;
import java.util.Date;
import org.springframework.stereotype.Repository;

@Repository
public class OdsDealerCenterUserBrandProviderRepositoryImpl implements
        OdsDealerCenterUserBrandProviderRepository {

    private final OdsDealerCenterUserBrandProviderDOMapper odsDealerCenterUserBrandProviderDOMapper;

    public OdsDealerCenterUserBrandProviderRepositoryImpl(
            OdsDealerCenterUserBrandProviderDOMapper odsDealerCenterUserBrandProviderDOMapper) {
        this.odsDealerCenterUserBrandProviderDOMapper = odsDealerCenterUserBrandProviderDOMapper;
    }

    @Override
    public Integer getAddUserBlackCount(Long clubId, Date startTime, Date endTime) {
        return odsDealerCenterUserBrandProviderDOMapper.selectAddUserBlackCount(clubId, startTime, endTime);
    }
}
